package com.yuhanginfo.modules.web.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.yuhanginfo.common.persistence.Page;
import com.yuhanginfo.common.service.WebCrudService;
import com.yuhanginfo.modules.web.dao.WebInvoiceInfoDao;
import com.yuhanginfo.modules.web.entity.WebInvoiceInfo;

/**
 * 订单详情Service
 * @author yangs
 * @version 2017-09-19
 */
@Service
@Transactional(readOnly = true)
public class WebInvoiceInfoService extends WebCrudService<WebInvoiceInfoDao, WebInvoiceInfo> {
    @Autowired
    private WebInvoiceInfoDao webInvoiceInfoDao;
    
	public WebInvoiceInfo get(String id) {
		return super.get(id);
	}
	
	public List<WebInvoiceInfo> findList(WebInvoiceInfo invoiceInfo) {
		return super.findList(invoiceInfo);
	}
	
	public Page<WebInvoiceInfo> findPage(Page<WebInvoiceInfo> page, WebInvoiceInfo invoiceInfo) {
		return super.findPage(page, invoiceInfo);
	}
	
	@Transactional(readOnly = false)
	public void save(WebInvoiceInfo invoiceInfo) {
		super.save(invoiceInfo);
	}
	
	@Transactional(readOnly = false)
	public void delete(WebInvoiceInfo invoiceInfo) {
		super.delete(invoiceInfo);
	}

	public WebInvoiceInfo selectByOrdersCode(String id) {
		
		return webInvoiceInfoDao.selectByOrdersCode(id);
	}
	
}